<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Wiki View</title>
    <style>
        body{
            margin: 0;
        }
        header{
            background-color: #333;
            color: white;
            padding: 10px;
        }
        header > h1 {
            margin: 0;
            font-size: 23px;
        }
        pre{
            font-family: Arial, Helvetica, sans-serif;
        }
        #content {
            padding: 10px;
        }
    </style>
</head>
<body>
    <header>
        <h1>{{.Title}}</h1>
    </header>
    <main>
        <div id="content">
            <input id="text" hidden value="{{printf "%s" .Body}}">
        </div>
        <p>[<a href="/edit/{{.Title}}">编辑内容</a>]</p>
    </main>
    <script>
        text = document.getElementById("text").value
        document.getElementById("content").innerHTML = text
    </script>
</body>
</html>